package com.cartoonrabbit.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiuTeng
 * @since 2023-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_early_action")
@ApiModel(value="EarlyAction对象", description="")
public class EarlyAction implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "活动id")
    @TableId(value = "action_id", type = IdType.AUTO)
    private Integer actionId;

    @ApiModelProperty(value = "活动金额")
    @TableField("total_money")
    private Long totalMoney;

    @ApiModelProperty(value = "总人数")
    @TableField("total_person")
    private Integer totalPerson;

    @ApiModelProperty(value = "成功打卡人数")
    @TableField("total_success")
    private Integer totalSuccess;

    @ApiModelProperty(value = "失败打卡人数")
    @TableField("total_fail")
    private Integer totalFail;

    @ApiModelProperty(value = "活动状态,0打卡进行中,1打卡结算中,2打卡已结束")
    @TableField("action_status")
    private Integer actionStatus;

    @ApiModelProperty(value = "早起之星")
    @TableField("early_start")
    private String earlyStart;

    @ApiModelProperty(value = "手气之星")
    @TableField("luck_start")
    private String luckStart;

    @ApiModelProperty(value = "毅力之星")
    @TableField("power_start")
    private String powerStart;

    @ApiModelProperty(value = "活动创建时间")
    @TableField("create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;





}
